<?php

class Teacher
{
    public $name;
    public $age;
    public $sex;
    function sex($sex)
    {
        echo("我的性别是:$this->sex<br>");
    }

    function name($name)
    {
        echo("我的名字是:$this->name<br>");
    }
    function  age($age)
    {
        echo("我的年龄是:$this->age<br>");
    }
    function self_t()
    {
        echo "我是".$this->name.",我是个".$this->age."岁的".$this->sex."生"."<br>";
    }

}